package controllers

import (
	"github.com/astaxie/beego"
)

type MainController struct {
	beego.Controller
}

func (this *MainController) Get() {
	//c.Data["Website"] = "beego.me"
	//c.Data["Email"] = "astaxie@gmail.com"
	//name := this.CruSession.SessionID()

	//beego.Info(name)

	username := this.GetSession("username")
	if username == ""{
		this.Data["username"] = "登陆"
		this.Data["pwd"] = "注册"
	}else{
		this.Data["username"] = username
		this.Data["pwd"] = "退出"
	}
	this.TplName = "index.html"
}


